package com.shelpe.services.sinbad.dto.semiauto;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

@Data
public class SemiautoSettings {
	private int date;
	@JsonProperty("price_model")
	private SemiautoPriceModel priceModel;
	@JsonProperty("match_scope_model")
	private SemiautoMatchScopeModel matchScopeModel;
	@JsonProperty("delete_model")
	private SemiautoDeleteModel deleteModel;
	private List<SemiautoCondition> conditions;
	
	public void addCondition(SemiautoCondition cond){
		if(this.conditions == null){
			this.conditions = new ArrayList<SemiautoCondition>();
		}
		this.conditions.add(cond);
	}
}
